Package com.cisco.pt.impl
Class IPCResponseLTV
java.lang.Object
com.cisco.pt.impl.LTVImpl
com.cisco.pt.impl.IPCResponseLTV
- All Implemented Interfaces:
LTV
Encapsulates IPC response PTMP message
- Author:
- packettracerexapps@external.cisco.com
-
Field Summary
FieldsFields inherited from interface com.cisco.pt.LTV
AUTH_CHALLENGE_TYPE, AUTH_REQUEST_TYPE, AUTH_RESPONSE_TYPE, AUTH_STATUS_TYPE, DISCONNECT_MESSAGE_TYPE, IPC_ERROR_TYPE, IPC_EVENT_SUBSCRIPTION_TYPE, IPC_EVENT_TYPE, IPC_MESSAGE_TYPE, IPC_RESPONSE_TYPE, KEEP_ALIVE_MESSAGE_TYPE, MULTI_USER_MESSAGE_TYPE, NEGOTIATION_MESSAGE_TYPE, PTMP_TYPE_MUCONIN, PTMP_TYPE_MUCONOUT, PTMP_TYPE_MULINKUPDATE, PTMP_TYPE_MULINKUPDATESTATUS, PTMP_TYPE_MUNAMEUPDATE, PTMP_TYPE_MUNEGOREQ, PTMP_TYPE_MUNEGORESP, PTMP_TYPE_MUPDU, PTMP_TYPE_MUPORTADV, PTMP_TYPE_MUSAVENETREQ, PTMP_TYPE_MUSAVENETRESP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbytedoublefloatintlongintshortbooleanvoidMethods inherited from class com.cisco.pt.impl.LTVImpl
getLength, getNextMessageId, getType, getValue, hasResponse, isEvent, isMuMessage, setLength, setType, setValue
-
Field Details
-
messageId
protected int messageId -
innerValue
-
-
Constructor Details
-
IPCResponseLTV
public IPCResponseLTV(int messageId) - Parameters:
messageId- int
-
-
Method Details
-
isResponse
public boolean isResponse()- Specified by:
isResponsein interfaceLTV- Overrides:
isResponsein classLTVImpl- Returns:
- true if the message is a response sent from Packet Tracer
-
getMessageId
public int getMessageId()- Specified by:
getMessageIdin interfaceLTV- Overrides:
getMessageIdin classLTVImpl- Returns:
- message id, used to match this message with its response from Packet Tracer its value is arbitrary unless (hasResponse() == true OR isResponse() == true)
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceLTV- Overrides:
encodeTypeAndPayloadin classLTVImpl- Parameters:
buff- The EncodedBuffer that this object should encode itself into
-
getBoolValue
public boolean getBoolValue()- Returns:
- boolean
-
getByteValue
public byte getByteValue()- Returns:
- byte
-
getDoubleValue
public double getDoubleValue()- Returns:
- double
-
getFloatValue
public float getFloatValue()- Returns:
- float
-
getIntValue
public int getIntValue()- Returns:
- int
-
getLongValue
public long getLongValue()- Returns:
- long
-
getShortValue
public short getShortValue()- Returns:
- short
-
getObjectValue
- Returns:
Object
-
setValue
- Parameters:
innerValue- Object
-